package org.rsbot.client;

import java.util.Arrays;

public class ModelCapture
  implements Model
{
  private int[] vertex_x;
  private int[] vertex_y;
  private int[] vertex_z;
  private short[] face_a;
  private short[] face_b;
  private short[] face_c;

  public ModelCapture(Model paramModel)
  {
    if (paramModel == null) {
      return;
    }
    int[] arrayOfInt = paramModel.getXPoints();
    this.vertex_x = Arrays.copyOf(arrayOfInt, arrayOfInt.length);
    arrayOfInt = paramModel.getYPoints();
    this.vertex_y = Arrays.copyOf(arrayOfInt, arrayOfInt.length);
    arrayOfInt = paramModel.getZPoints();
    this.vertex_z = Arrays.copyOf(arrayOfInt, arrayOfInt.length);

    short[] arrayOfShort = paramModel.getIndices1();
    this.face_a = Arrays.copyOf(arrayOfShort, arrayOfShort.length);
    arrayOfShort = paramModel.getIndices2();
    this.face_b = Arrays.copyOf(arrayOfShort, arrayOfShort.length);
    arrayOfShort = paramModel.getIndices3();
    this.face_c = Arrays.copyOf(arrayOfShort, arrayOfShort.length);
  }

  public int[] getXPoints() {
    return this.vertex_x;
  }

  public int[] getYPoints() {
    return this.vertex_y;
  }

  public int[] getZPoints() {
    return this.vertex_z;
  }

  public short[] getIndices1() {
    return this.face_a;
  }

  public short[] getIndices2() {
    return this.face_b;
  }

  public short[] getIndices3() {
    return this.face_c;
  }
}